import { configureStore } from "@reduxjs/toolkit";

import categoryReducer from "./reducers/commonCategory";
import concatInfoReducer from "./reducers/contactInfo";
import businessInfoReducer from "./reducers/businessInfo";
import userInfoReducer from "./reducers/userInfo";
import tabbarReducer from "./reducers/tabbar";

const stroe = configureStore({
  reducer: {
    category: categoryReducer,
    concat: concatInfoReducer,
    business: businessInfoReducer,
    userInfo: userInfoReducer,
    tabbar: tabbarReducer,
  },
});

export default stroe;

export type RootState = ReturnType<typeof stroe.getState>;
